class Proveedor < ActiveRecord::Base
  after_create :generar_clave
  
 # belongs_to :giro_empresa, :foreign_key => 'IdGiroEmpresa'
  
  
  def generar_clave
    self.Clave = self.id
    self.save
  end
end
